<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
		PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich" xmlns:f="http://java.sun.com/jsf/core">
<ui:composition>
	<h:outputStylesheet>
		.pic {
			margin-bottom: -4px;
			margin-right: 2px;
		}

		.search .rf-ddm-itm-sel {
			background-color: transparent;
			background-image:none;
			border-color: transparent;
			cursor: default;
		}
	</h:outputStylesheet>
	<h:form>
		<rich:toolbar height="26px">
			<rich:dropDownMenu mode="ajax">
				<f:facet name="label">
					<h:panelGroup>
						<!--<h:graphicImage value="/resources/images/icons/copy.gif" styleClass="pic" alt="copy" />-->
						<h:outputLink value="#{facesContext.externalContext.requestContextPath}/pages/index.xhtml">
							<h:outputText value="#{BundleLabels.start}"/>
						</h:outputLink>
					</h:panelGroup>
				</f:facet>
				<rich:menuItem  submitMode="none">
					<h:outputLink value="#{facesContext.externalContext.requestContextPath}/pages/user/register.xhtml">
						<h:outputText value="#{BundleLabels.menu_user_manager}"/>
					</h:outputLink>
				</rich:menuItem>
				<rich:menuItem submitMode="none">
					<h:outputLink
							value="#{facesContext.externalContext.requestContextPath}/pages/product/product.xhtml">
						<h:outputText value="#{BundleLabels.menu_product_manager}"/>
					</h:outputLink>
				</rich:menuItem>
				<rich:menuItem label="#{BundleLabels.open}" action="#{dropDownMenuBean.doOpen}" />
				<rich:menuGroup label="#{BundleLabels.saveAs}">
					<rich:menuItem label="#{BundleLabels.save}" action="#{dropDownMenuBean.doSave}"  />
					<rich:menuItem label="#{BundleLabels.saveAll}" action="#{dropDownMenuBean.doSaveAll}">
						<!--<f:facet name="icon">
							<h:graphicImage value="/resources/images/icons/save_all.gif" alt="save_all" />
						</f:facet>-->
					</rich:menuItem>
				</rich:menuGroup>
				<rich:menuSeparator id="menuSeparator11" />
				<rich:menuItem label="#{BundleLabels.exit}"   action="#{loginBean.logout}"/>
			</rich:dropDownMenu>

			<rich:dropDownMenu mode="ajax">
				<f:facet name="label">
					<h:panelGrid cellpadding="0" cellspacing="0" columns="2" style="vertical-align:middle">
						<h:outputText value="#{BundleLabels.manager_tools}"/>
					</h:panelGrid>
				</f:facet>
				<rich:menuItem submitMode="task">
					<h:outputLink target="_blank"   value="http://www.jabex.com.es/youtrack/">#{BundleLabels.taskManager}</h:outputLink>
				</rich:menuItem>
				<rich:menuItem submitMode="proyect">
                    <h:outputLink target="_blank"   value="http://www.jabex.com.es/TeamCity/">#{BundleLabels.proyectManager}</h:outputLink>
				</rich:menuItem>
                <rich:menuItem submitMode="message">
                    <h:outputLink target="_blank"   value="http://www.jabex.com.es:5280/admin">#{BundleLabels.messageManager}</h:outputLink>
                </rich:menuItem>
			</rich:dropDownMenu>
		</rich:toolbar>
	</h:form>
	<br />
<!--	<a4j:outputPanel ajaxRendered="true">
		<h:outputText value="Current Selection: "/>
		<h:outputText style="font-weight:bold" value="#{dropDownMenuBean.current}"/>
	</a4j:outputPanel>-->
	<br />
</ui:composition>
</html>